<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<HTML lang="en">
<HEAD>
	<TITLE>{% block title %}Inventory Management{% endblock %}</TITLE>
	<link rel="stylesheet" href="/static/style.css">
	{% block HEAD %} {% endblock %}
</HEAD>
<BODY {% block BODYTAGS %} {% endblock %}>
	<div id="container">
		<div id="header">
			<h1>
				Inventory Management
			</h1>
		</div>
		<div id="navigation">
			<ul>
				{% if user.is_authenticated %}
				<li><a href="/">Home</a></li>
				<li><a href="/browse/1/20">Browse</a></li>
				<li><a href="/search">Search</a></li>
				<li><a href="/add">Add</a></li>
				<li><a href="/changepw">Change password</a></li>
				{% if user.is_superuser %}
				<li><a href="/admin">Admin</a></li>
				{% endif %}
				<li><a href="/logout">Logout ({{user.username}})</a></li>
				{% else %}
				<li><a href="/login">Login</a></li>
				{% endif %}
			</ul>
		</div>
		<div id="content-container">
			<div id="content">
				<h2>
					{% block content_header %}{% endblock %}
				</h2>
				{% block content %} {% endblock %}
			</div>
			
			<div id="footer">
				Copyright © TBM Tecom LCC, 2011
			</div>
		</div>
	</div>
</BODY>
</HTML>